package com.hoshiicloud.suppplier.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.user.dto.supppiler.*;
import com.hoshiicloud.user.param.supppiler.*;
import com.hoshiicloud.suppplier.feign.IUsersService;
import org.springframework.data.domain.Page;

import javax.validation.Valid;
import java.util.List;

/**
 * @Author:campchen
 * @Date:Created in 上午 11:48 2019/7/30
 * @PACKAGENAME com.hoshiicloud.suppplier.feign.hystrix
 * @Description 用户域 熔断
 */
public class HystrixUsersServiceFeignFallback implements IUsersService {
    @Override
    public Response getById(Long id) {
        return Response.failed("查询公司信息失败");
    }

    @Override
    public Response getComDepartmentsById(Long id) {
        return Response.failed("查询公司部门信息失败");
    }

    @Override
    public Response getAttachById(Long id) {
        return Response.failed("查询附件类型信息失败");
    }

    @Override
    public Response getSetteleById(Long id) {
        return Response.failed("查询结算方式信息失败");
    }

    @Override
    public Response getMemberById(Long id) {
        return Response.failed("查询会员信息失败");
    }

    @Override
    public Response getMemberByMobile(Long companyId,String mobile) {
        return Response.failed("根据电话查询会员信息失败");
    }

    @Override
    public Response<Long> save(Member member) {
        return Response.failed("新增会员信息失败");
    }


    @Override
    public Response selectOrganizationTypeByOrgType(Integer orgType)  {
        return Response.failed("获取经营类型失败");
    }

    @Override
    public Response selectAttachmentTypeByCategoryIdOrOrganizationId(List<Long> categoryIds, Long organizationTypeId) {
        return Response.failed("根据类目id与供应商类型Id获取模板失败");
    }

    @Override
    public Response getPlatformById(Long id) {
        return Response.failed("根据id查询平台信息失败");
    }

    @Override
    public Response<PlatStoreDTO> getPlatStoreById(Long id) {
        return Response.failed("根据id查询店铺信息失败");
    }

    @Override
    public Response<String> saveCompanyOrganization(ComOrganizationAddParam comOrganizationAddParam) {
        return Response.failed("新增租户供应商失败");
    }

    @Override
    public Response<Page<ComOrganizationDTO>> getPage(ComOrganizationQueryParam comOrganizationQueryParam) {
        return Response.failed("分页查询租户供应商列表失败");
    }

    @Override
    public Response<ComOrganizationDTO> selectCompanyOrganization(Long id) {
        return Response.failed("根据ID查询租户供应商详情失败");
    }


    @Override
    public Response<ComOrganizationDTO> comApproval(Long id, Integer status) {
        return Response.failed("根据id修改租户供应商审核状态失败");
    }

    @Override
    public Response update(@Valid ComOrganizationUpdateParam comOrganizationUpdateParam) {
        return Response.failed("修改租户供应商信息失败");
    }

    @Override
    public Response getPageCategory(ComOrganizationCategoryQueryParam param) {
        return Response.failed("查询租户供应商经营类目信息失败");
    }

    @Override
    public Response save(@Valid ComOrganizationCategoryAddParam param) {
        return Response.failed("保存租户供应商经营类目信息失败");
    }

    @Override
    public Response insertCategory4ComOrganization(List<ComOrganizationCategoryDTO> comOrganizationCategories) {
        return Response.failed("批量保存租户供应商经营类目信息失败");
    }

    @Override
    public Response getPageAttach(ComOrganizationAttachQueryParam param) {
        return Response.failed("查询租户供应商附件失败");
    }

    @Override
    public Response saveCompanyOrganizationAttach(ComOrganizationAttachDTO comOrganizationAttachDTO) {
        return Response.failed("新增租户供应商附件失败");
    }

    @Override
    public Response insertAttach4ComOrganization(List<ComOrganizationAttachDTO> list) {
        return Response.failed("批量新增租户供应商附件失败");
    }

    @Override
    public Response<String> saveCompanyOrganizationDepartmentes(ComOrganizationDepartmentesAddParam comOrganizationDepartmentesAddParam) {
        return Response.failed("新增租户供应商部门失败");
    }

    @Override
    public Response<String> saveCompanyOrganizationUsers(ComOrganizationUsersAddParam comOrganizationUsersAddParam) {
        return Response.failed("新增租户供应商用户失败");
    }

    @Override
    public Response<String> saveCompanyOrganizationDepartmentesUsers(ComOrganizationDepartmentesUsersAddParam comOrganizationDepartmentesUsersAddParam) {
        return Response.failed("新增租户供应商部门用户关联表失败");
    }

    @Override
    public Response deleteAttachByIds(List<Long> ids) {
        return Response.failed("批量删除附件失败");
    }

    @Override
    public Response deleteCategoryByIds(List<Long> ids) {
        return Response.failed("批量删除经营领域失败");
    }

    @Override
    public Response deleteByComId(Long id) {
        return Response.failed("删除租户供应商基础信息失败");
    }

    @Override
    public Response deleteByDepartmentId(Long id) {
        return Response.failed("删除租户供应商部门失败");
    }

    @Override
    public Response deleteByUsersId(Long id) {
        return Response.failed("删除租户供应商用户失败");
    }

    @Override
    public Response selectOrganizationByMemberId(Long memberId) {
        {
            return Response.failed("根据memberId获取租户供应商部分信息失败");
        }
    }

    @Override
    public Response findByName(String name) {
        return Response.failed("根据name判断信息是否存在失败");
    }


    @Override
    public Response<String> savePlatformOrganization(PlatOrganizationAddParam platOrganizationAddParam) {
        return Response.failed("新增平台供应商失败");
    }

    @Override
    public Response<Page<PlatOrganizationQueryParam>> getPage(PlatOrganizationQueryParam platOrganizationQueryParam) {
        return Response.failed("分页查询平台供应商列表失败");
    }

    @Override
    public Response<PlatOrganizationDTO> selectPlatformOrganization(Long id) {
        return Response.failed("根据ID查询平台供应商详情失败");
    }

    @Override
    public Response platApproval(Long id, Integer status) {
        return Response.failed("根据id修改平台供应商审核状态失败");
    }

    @Override
    public Response update(PlatOrganizationUpdateParam platOrganizationUpdateParam) {
        return Response.failed("修改平台供应商信息失败");
    }

    @Override
    public Response save(@Valid PlatOrganizationCategoryAddParam param) {
        return Response.failed("新增平台供应商经营品类信息失败");
    }

    @Override
    public Response insertCategory4PlatOrganization(List<PlatOrganizationCategoryDTO> platOrganizationCategories) {
        return Response.failed("批量新增平台供应商经营品类信息失败");
    }

    @Override
    public Response savePlatformOrganizationAttach(PlatOrganizationAttachmentDTO platOrganizationAttachmentDTO) {
        return Response.failed("新增平台供应商附件失败");
    }

    @Override
    public Response insertAttach4PlatOrganization(List<PlatOrganizationAttachmentDTO> list) {
        return Response.failed("批量新增平台供应商附件失败");
    }

    @Override
    public Response<String> savePlatformOrganizationDepartmentes(PlatOrganizationDepartmentesAddParam platOrganizationDepartmentesAddParam) {
        return Response.failed("新增平台供应商部门失败");
    }

    @Override
    public Response<String> savePlatformOrganizationUsers(PlatOrganizationUsersAddParam platOrganizationUsersAddParam) {
        return Response.failed("新增平台供应商用户失败");
    }

    @Override
    public Response savePlatformOrganizationDepartmentesUsers(PlatOrganizationDepartmentesUsersAddParam platOrganizationDepartmentesUsersAddParam) {
        return Response.failed("新增平台供应商部门人员关联表失败");
    }

    @Override
    public Response<String> saveStoreOrganization(StoreOrganizationAddParam storeOrganizationAddParam) {
        return Response.failed("新增店铺供应商失败");
    }

    @Override
    public Response<Page<StoreOrganizationQueryParam>> getPage(StoreOrganizationQueryParam storeOrganizationQueryParam) {
        return Response.failed("分页查询店铺供应商列表失败");
    }

    @Override
    public Response<StoreOrganizationDTO> selectStoreOrganization(Long id) {
        return Response.failed("根据ID查询店铺供应商详情失败");
    }

    @Override
    public Response storeApproval(Long id, Integer status) {
        return Response.failed("根据id修改店铺供应商审核状态失败");
    }

    @Override
    public Response update(StoreOrganizationUpdateParam storeOrganizationUpdateParam) {
        return Response.failed("修改店铺供应商信息失败");
    }

    @Override
    public Response save(@Valid StoreOrganizationCategoryAddParam param) {
        return Response.failed("新增店铺供应商经营品类信息失败");
    }

    @Override
    public Response insertCategory4StoreOrganization(List<StoreOrganizationCategoryDTO> storeOrganizationCategories) {
        return Response.failed("批量新增店铺供应商经营品类信息失败");
    }

    @Override
    public Response saveStoreOrganizationAttach(StoreOrganizationAttachmentDTO storeOrganizationAttachmentDTO) {
        return Response.failed("新增店铺供应商附件失败");
    }

    @Override
    public Response insertAttach4StoreOrganization(List<StoreOrganizationAttachmentDTO> list) {
        return Response.failed("批量新增店铺供应商附件失败");
    }

    @Override
    public Response<String> saveStoreOrganizationDepartmentes(StoreOrganizationDepartmentesAddParam storeOrganizationDepartmentesAddParam) {
        return Response.failed("新增平台供应商部门失败");
    }

    @Override
    public Response<String> saveStoreOrganizationUsers(StoreOrganizationUsersAddParam storeOrganizationUsersAddParam) {
        return Response.failed("新增店铺供应商用户失败");
    }

    @Override
    public Response saveStoreOrganizationDepartmentesUsers(StoreOrganizationDepartmentesUsersAddParam storeOrganizationDepartmentesUsersAddParam) {
        return Response.failed("新增店铺供应商部门用户关联表失败");
    }
}
